package org.penguin.study.bk.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum UserStatus {
    new_(1, "new"),

    approved(2, "approved"), normal(3, "normal"),

    locked(4, "locked"), archived(5, "archived");

    @EnumValue
    private final Integer val;

    @JsonValue
    private final String desc;

    @JsonCreator
    UserStatus(Integer val, String desc) {
        this.val = val;
        this.desc = desc;
    }
}
